#ifndef WIDGET_H
#define WIDGET_H
#include<QMediaPlayer>
#include<QMediaPlaylist>
#include <QWidget>
#include <QDialog>
#include<QMouseEvent>
#include<QFileDialog>
#include<QListWidget>
#include<QListWidgetItem>
#include<QList>
#include<QMap>
#include<QSlider>
#include<QScrollBar>
#include<QTime>
#include<QLabel>
#include<QTimer>
#include<QTime>
#include<QtMath>
#include"dialog1.h"
#include "ui_widget.h"
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_resumebtn_clicked();

    void on_pushButton_music_clicked();
    void setSound();
    void on_pushButton_sound_clicked();

//    void mousePressEvent(QMouseEvent *event);
//    void mouseMoveEvent(QMouseEvent *event);
//    void mouseReleseEvent(QMouseEvent *);
    void on_exitbtn_clicked();

    void on_image1_objectNameChanged(const QString &objectName);

    void on_image1_linkActivated(const QString &link);

    void btnbackgroundclicked();

private:
    Ui::Widget *ui;
    bool soundPressed=false;
    QMediaPlayer *player;
    QMediaPlaylist *playerlist;
    int ThemeNum=1;
};

#endif // WIDGET_H
